﻿using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Practices.ObjectBuilder;
using Microsoft.Practices.CompositeWeb;

namespace TestWCSFSitemaps.Statements.Views
{
    public class SeeYPresenter : Presenter<ISeeYView>
    {

        // NOTE: Uncomment the following code if you want ObjectBuilder to inject the module controller
        //       The code will not work in the Shell module, as a module controller is not created by default
        //
        private IStatementsController _controller;
        public SeeYPresenter([CreateNew] IStatementsController controller)
        {
            _controller = controller;
        }

        public override void OnViewLoaded()
        {
            // TODO: Implement code that will be executed every time the view loads
        }

        public override void OnViewInitialized()
        {
            // TODO: Implement code that will be executed the first time the view loads
            View.DisplayText = _controller.GetText();
        }

        // TODO: Handle other view events and set state in the view
        public void GoSeeX()
        {
            _controller.GoSeeX();
        }

        public void GoSeeZ()
        {
            _controller.GoSeeZ();
        }
    }
}




